import Router from '@koa/router'

import { startAvd, stopAvd } from '../controller/index.js'

export default app => {
  const router = new Router()

  router.get('/avd/start', startAvd)
  router.get('/avd/stop', stopAvd)

  app.use(router.routes()).use(router.allowedMethods())
}
